package org.springblade.application.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.application.command.DashboardAndDisplaysCommand;
import org.springblade.core.mp.base.BaseService;
import org.springblade.application.command.TargetAddressPageCommand;
import org.springblade.applicationapi.entity.TargetAddressEntity;
import org.springblade.applicationapi.vo.TargetAddressVO;
import org.springblade.core.tool.api.R;

import java.util.List;

/**
 * @author wzy
 */
public interface ITargetAddressService extends BaseService<TargetAddressEntity> {

	/**
	 * 分页
	 * @param pageCommand
	 * @param page
	 * @return
	 */
	IPage<TargetAddressVO> addressPage(TargetAddressPageCommand pageCommand, IPage<TargetAddressVO> page);
	/**
	 * 无限制分页
	 * @param pageCommand
	 * @param page
	 * @return
	 */
	IPage<TargetAddressVO> unlimitedPage(TargetAddressPageCommand pageCommand, IPage<TargetAddressVO> page);

	/**
	 * 新增
	 * @param entity
	 * @return
	 * @throws Exception
	 */
	Long add(TargetAddressEntity entity) throws Exception;


	/**
	 * 删除
	 * @param ids
	 * @return
	 */
	boolean removeByid(List<Long> ids);

	/**
	 * 修改
	 * @param entity
	 * @return
	 */
	boolean edit(TargetAddressEntity entity);


	/**
	 * 新增配置信息
	 * @param id 应用中心表id
	 * @param configInfo 配置信息
	 * @return
	 */
	R<Object> configInfo(Long id, String configInfo);
}
